package cn.java78.springboot.myschool;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

//@ImportResource("xx.xml")
@SpringBootApplication
//@EnableCaching
@MapperScan(basePackages = "cn.java78.springboot.myschool.dao")
//@ComponentScan(basePackages = "")
//>>>@ServletComponentScan  @Bean
public class MyschoolApplication extends SpringBootServletInitializer
{

    public static void main(String[] args) {
        SpringApplication.run(MyschoolApplication.class, args);
    }


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder);
    }
}
